//
//  PageController.h
//  NVAReader
//
//  Created by DuyLK on 6/14/14.
//  Copyright (c) 2014 com.nva.nvareader. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PXListView.h"
#include "mupdf/fitz.h"
#import "ListPageDelegate.h"
#import "PageScrollDelegate.h"
#import "HitView.h"
#import "PageCell.h"
@interface PageController : NSObject <PXListViewDelegate,ListPageDelegate>
{
    IBOutlet PXListView	*listView;
	NSMutableArray		*_listItems;
    fz_document *document;
}
@property (nonatomic, strong) id<PageScrollDelegate> delegate;
@property NSInteger totalItem;
@property int withPage;
@property int heightPage;
@property int currentPage;
@property BOOL isZoom;
@property (copy) NSMutableArray *pageCellTemp;
@property (copy) NSMutableDictionary *searchData;

-(id) initWithDocument:(fz_document*)doc;
-(id) initWithDocument:(fz_document*)doc width:(int)widthPage height:(int)heightPage;
-(void)removeDataSearch;
-(void) setSearchDataForCell:(NSMutableDictionary *)searchData;
-(void) addTextSelectForCell:(BOOL) add;
-(void) addDrawHand: (BOOL) add;
-(void) changeWidthHeight:(int)widthPage height:(int)heightPage;
@end
